﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication2._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <style>
        th{
            text-align:center;
            width:150px;
            line-height:50px;
        }
        td{
            text-align:center;
            width:150px;
            line-height:50px;
        }
    </style>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="False" OnRowEditing="GridView1_RowEditing" OnRowUpdating ="GridView1_RowUpdating" OnRowDeleting="GridView1_RowDeleting" OnRowCancelingEdit="GridView1_RowCancelingEdit" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" >
        <Columns>
            <asp:BoundField DataField ="Id" HeaderText ="Id" ReadOnly="true" HeaderStyle-Width="50px">
<HeaderStyle Width="50px"></HeaderStyle>
            </asp:BoundField>
            <asp:BoundField DataField ="Name" HeaderText ="姓名" />
            <asp:BoundField DataField ="Sex" HeaderText ="性别" />
            <asp:BoundField DataField ="Age" HeaderText ="年龄" />
            <asp:BoundField DataField ="Remarks" HeaderText ="备注" />
            <asp:CommandField ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true" HeaderText ="操作"/>
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    <br />
    <asp:Button ID="Herty" runat="server" Text ="添加" OnClick="Herty_Click" />
</asp:Content>
